package com.ys.enume.storage;

public class TccFbaLogisticsMethodEnum {
	
	/*
	 * 单据来源
	 */
	public enum SourceType {
		FBAPLAN("FBA计划单", 0), FBAFH("FBA发货单", 1);
		public String name;
		public Integer value;

		private SourceType(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (SourceType e : SourceType.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}

	/*
	 * 清关方式
	 */
	public enum NameLogsticsClearance {
		SELFTAX("自税", 0), FARMINGTAXES("包税", 1), FARMINGTAXESDF("包税单发", 2);
		public String name;
		public Integer value;

		private NameLogsticsClearance(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (SourceType e : SourceType.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
	
}
